package com.ssy.lingxi.system.dto.request;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.PositiveOrZero;


/**
* 修改国家请求实体
* @author wrc
* @date 2020/6/2
*/
public class CountryAreaUpdateRequest {

    @ApiModelProperty(value = "国家地区id")
    private Long id;

    @Length(max = 6,message = "国家地区代码最长不能超过6个字符")
    @ApiModelProperty(value = "国家地区代码")
    private String code;

    @Length(max = 30,message = "国家地区名称最长不能超过30个字符")
    @ApiModelProperty(value = "国家地区名称")
    private String name;

    @Length(max = 6,message = "英文名称最长不能超过6个字符")
    @ApiModelProperty(value = "英文名称")
    private String nameEn;


    @ApiModelProperty(value = "电话代码")
    private String telCode;

    @ApiModelProperty(value = "手机号位数")
    @PositiveOrZero(message = "手机号位数要大于等于0")
    private Integer telNumber;

    @ApiModelProperty(value = "状态")
    private Integer state;


    @ApiModelProperty(value = "币制中文ID")
    private Long currencyId;

    @ApiModelProperty(value = "语言ID")
    private Long languageId;

    @ApiModelProperty(value = "国家图片url")
    private String imgUrl;

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }

    public String getTelCode() {
        return telCode;
    }

    public void setTelCode(String telCode) {
        this.telCode = telCode;
    }

    public Integer getTelNumber() {
        return telNumber;
    }

    public void setTelNumber(Integer telNumber) {
        this.telNumber = telNumber;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getCurrencyId() {
        return currencyId;
    }

    public void setCurrencyId(Long currencyId) {
        this.currencyId = currencyId;
    }

    public Long getLanguageId() {
        return languageId;
    }

    public void setLanguageId(Long languageId) {
        this.languageId = languageId;
    }
}
